package com.test.mooan.labama.bean_boom;

import com.test.mooan.labama.adapter_boom.PermissionViewAdapter_boom;
import com.test.mooan.labama.listener_boom.PermissionListener_boom;
import com.test.mooan.labama.utils_boom.Stringutil_boom;


public class PermissionInfo_boom {

    private final Integer iconResId;
    private final String title;
    private final String text;
    private final PermissionListener_boom listener;

    private PermissionViewAdapter_boom.PermissionDialogHolder holder;

    public PermissionInfo_boom(Integer iconResId, String title, String text, PermissionListener_boom listener) {
        this.iconResId = iconResId;
        this.title = title;
        this.text = text;
        this.listener = listener;
    }

    public Integer gIconResId() {
        return iconResId;
    }

    public String gTitle() {
        return title;
    }

    public String gText() {
        return Stringutil_boom.getSafeString(text);
    }

    public PermissionListener_boom gListener() {
        return listener;
    }

    public void sHolder(PermissionViewAdapter_boom.PermissionDialogHolder holder) {
        this.holder = holder;
    }

    public PermissionViewAdapter_boom.PermissionDialogHolder gHolder() {
        return holder;
    }

    public void sViewAgree(){
        if (holder!=null) holder.agree();
    }

}
